-- GENERATED SPELL FOR [Captain Fairmount] --


function spell0_3393(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_3393', 628, 1)
end

function spell1_3393(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3393', 6339, 1)
end

function spell2_3393(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3393', 5284, 1)
end

function Sorts_3393(pUnit, Event)
local choix_sorts_3393 = math.random(0, 2)
if choix_sorts_3393 == 0 then
pUnit:RegisterEvent('spell0_3393', 1, 1)
end
if choix_sorts_3393 == 1 then
pUnit:RegisterEvent('spell1_3393', 1, 1)
end
if choix_sorts_3393 == 2 then
pUnit:RegisterEvent('spell2_3393', 1, 1)
end
end

function mob3393_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3393', math.random(1500, 3000), 1)
end

function mob3393_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3393_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3393_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3393, 1, 'mob3393_Action')
RegisterUnitEvent(3393, 2, 'mob3393_Leave')
RegisterUnitEvent(3393, 3, 'mob3393_Kill')
RegisterUnitEvent(3393, 4, 'mob3393_Die')
